package io.github.bigbird0101.datatransfer.model.config;

import io.github.bigbird0101.datatransfer.model.param.WriterParameters;
import lombok.Data;

import java.util.List;

/**
 * cassandra 配置参数
 */
@Data
public class CassandraWriterConfig extends WriterParameters {

    private String name;

    private String username;
    private String password;

    private String host;
    private Integer port;

    private boolean useSSL;

    private String keyspace;

    private String table;

    private List<String> column;

    private int batchSize;

    private boolean asyncWrite;

    private String consistancyLevel;

    public boolean getUseSSL() {
        return useSSL;
    }

    public void setUseSSL(boolean useSSL) {
        this.useSSL = useSSL;
    }

    public boolean getAsyncWrite() {
        return asyncWrite;
    }

    public void setAsyncWrite(boolean asyncWrite) {
        this.asyncWrite = asyncWrite;
    }

}
